package com.yq.canalkafka.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author by shizan
 * @Classname TestController
 * @Description 测试controller
 * @Date 2020/12/18 11:19 上午
 */
@RestController
@Slf4j
@RequestMapping(value = "/test/controller")
public class TestController {

    @PostMapping(value = "/getSimpleMessage")
    public String getSimpleMessage() {
        log.error("canal-kafka error 打印...");
        String str = "aaaa";
        log.error("canal-kafka 钉钉消息通知error打印->{}",str);

        log.info("canal-kafka 钉钉消息通知info打印");
        return "ok";
    }


}
